package cn.yhbk.web.modules.manager.Mapper;

import cn.yhbk.web.modules.manager.Pojo.Entity.TbCounsellorClass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 有何不可
 * @since 2023-08-05
 */
@Mapper
public interface TbCounsellorClassMapper extends BaseMapper<TbCounsellorClass> {


    /**
     * @param counsellorId
     * @return 根据班级id拿到辅导员与班级的映射关系
     */
    List<TbCounsellorClass> getRelationShipByCounsellorId(@Param("counsellorId") Long counsellorId);

    /**
     * @param classId
     * @return 根据班级id拿到辅导员与班级的映射关系
     */
    TbCounsellorClass getRelationShipByClassId(@Param("classId") Long classId);
}
